package com.apex.restful.domain;

import com.apex.restful.entity.TBsdtUserTechnological;
import com.edu.orm.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 用户订阅服务
 */
public interface UserTechnologicalRepository extends CustomRepository<TBsdtUserTechnological,Long> {

    @Query("select t from TBsdtUserTechnological t where t.userid=:userId and t.serverId=:serverId")
    List<TBsdtUserTechnological> findByUseridAndServerId(@Param("userId") String userId, @Param("serverId") Long serverId);
}
